package com.hz.ruoyilgorder.api.service;

import com.hz.rouyigonggong.utils.ResultJSON;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @version 1.0
 * @Author yzw
 * @Date 2025/3/8 9:43
 * @注释  调用仓库 服务
 */
@FeignClient(value = "ruoyi-storage",path = "/api")
public interface SubColdSome {
//仓库分区

    @GetMapping("/getColdSome")
    public ResultJSON getColdSome();

//单位
    @RequestMapping("/getUnitAll")
    public ResultJSON getAll();
    //仓库类型
    @GetMapping("/getColdType")
    public ResultJSON getColdType();
//商品类型大类
    @GetMapping("/getParent")
    public ResultJSON getParent();
    //商品类型小类
    @GetMapping(value = "/goodsId")
    public ResultJSON getChild(@RequestParam("goodsId") Integer goodsId);

    @GetMapping("/getColdCount")
    public List getColdCount();


    @PostMapping("/updateCold")
    public void updateCold(@RequestParam("subId") Integer subId,@RequestParam("yunsuan") String yunsuan);

    @GetMapping("/getColdAdress")
    public List getColdAdress();
    @PostMapping("/getCreateBy")
    public String getCreateBy(@RequestParam("subId") Integer subId);
}
